<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="reg.css">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="forget.css">
</head>
<body style="background-color: #f3f3f3">
<div id="zong">
    <div class="biaoti">忘记密码？</div>
    <div class="yanzheng">
        <div class="tishi">
            <ul>
                <li>请输入你的手机号或邮箱</li>
                <li>你将收到重置密码的信息，可以重新设置新的密码</li>
            </ul>
        </div>
        <div class="input">
            <div>短信验证码已发送至手机</div>
            <div class="yzmbtn clearfix" style="margin-left: 0;margin-top: 10px">
                <input id="yzm" class="yzm fl" placeholder="请输入验证码">
                <div class="fl getyzm" id="getyzm" style="font-size: 14px">获取验证码</div>
            </div>
            <div style="text-align: center;font-size:14px" id="tip"></div>
            <div id="resetbtn2">重置密码</div>
        </div>
    </div>
</div>
</body>
<script src="jquery-3.4.1.js"></script>
<script src="gong.js"></script>
<script>
    sendMsg(localStorage.forgetTel,false);

    resetbtn2.onclick = function(){
        ajax("/bijiyzm/find2",{tel:localStorage.forgetTel,yzm:yzm.value},function(data){
            if(data){
                localStorage.yzmRight = true;
                location = "forget3.html";
            }else{
                localStorage.yzmRight = false;
                tip.innerHTML = "验证码有误！";
            }
        });
    };
</script>
</html>